package cn.tedu.restaurant.mapper;

import cn.tedu.restaurant.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JachinLin
 * @since 2020-10-05
 */
public interface UserMapper extends BaseMapper<User> {
    Integer insertUser(User user);
    User selectByPhone(String phone);
    Integer updatePassword(@Param("uid") Integer uid, @Param("password") String password,
        @Param("modifiedUser") String modifiedUser, @Param("modifiedTime") Date modifiedTime);
    User findByUid(Integer uid);
    Integer updateUserName(Integer uid,String username,@Param("modifiedUser") String modifiedUser, @Param("modifiedTime") Date modifiedTime);
}
